(Fx_file_dialog): Take size from struct not pointer.
authorJason Rumney <jasonr@gnu.org>
Sun, 10 Jun 2007 23:28:55 +0000 (23:28 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 10 Jun 2007 23:28:55 +0000 (23:28 +0000)
src/w32fns.c

index 8cac4ea237671f0919d3fae17666dbaee59ca161..fd8df29affa75a0708878962a9917057fecfc20d 100644 (file)
@@ -7902,9 +7902,9 @@ If ONLY-DIR-P is non-nil, the user can only select directories.  */)
     /* Apparently NT4 crashes if you give it an unexpected size.
        I'm not sure about Windows 9x, so play it safe.  */
     if (w32_major_version > 4 && w32_major_version < 95)
-      file_details->lStructSize = sizeof (new_file_details);
+      file_details->lStructSize = sizeof (NEWOPENFILENAME);
     else
-      file_details->lStructSize = sizeof (file_details);
+      file_details->lStructSize = sizeof (OPENFILENAME);
 
     file_details->hwndOwner = FRAME_W32_WINDOW (f);
     /* Undocumented Bug in Common File Dialog: